<?php
    
    class ElementTopbarLogin extends Element {
        public function Render() {
            global $db;
            global $server;

            ?><div class="login item">
                <a href="" onclick="Login.Go( this );return false;" title="Log in as somebody else"><?php
                if ( !isset( $server[ 'loginrequired' ] ) ) {
                    echo $db->Username();
                }
                ?></a><?php

                Element( 'modal/login' );
            ?></div><?php
        }
    }

?>
